package main

import (
	"gitee.com/yumo01/bag/global"
	"gitee.com/yumo01/bag/initialize"
	"gitee.com/yumo01/bag/logic"
	"gitee.com/yumo01/bag/rpcSer"
	"go.uber.org/zap"
	"google.golang.org/grpc"
)

func init() {
	zap.S().Info("正在初始化配置文件")
	initialize.Zap()
	initialize.Viper()
	initialize.Nacos()
	initialize.Mysql()
	//initialize.Consul()
	zap.S().Info("配置文件初始化完成")
}

func main() {

	//启动一个grpc服务
	rpcSer.RegisterGrpg(global.SevConf.RpcPort, func(ser *grpc.Server) {
		logic.RegisterGrpc(ser)
	})

}
